<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>返回所取得行中字段的值</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.oci-pconnect.html">oci_pconnect</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.oci-rollback.html">oci_rollback</a></div>
 <div class="up"><a href="ref.oci8.html">OCI8 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.oci-result" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">oci_result</h1>
  <p class="verinfo">(PHP 5, PECL OCI8 &gt;= 1.1.0)</p><p class="refpurpose"><span class="refname">oci_result</span> &mdash; <span class="dc-title">返回所取得行中字段的值</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.oci-result-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <span class="methodname"><strong>oci_result</strong></span>
    ( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$statement</code></span>
   , <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <code class="parameter">$field</code></span>
   )</div>

  <p class="para rdfs-comment">
   <span class="function"><strong>oci_result()</strong></span> 返回由 <span class="function"><a href="function.oci-fetch.html" class="function">oci_fetch()</a></span>
   所取得的当前行中 <em><code class="parameter">field</code></em>
   字段的数据。<span class="function"><strong>oci_result()</strong></span>
   对所有类型都返回字符串只除了抽象类型（ROWID，LOB 和
   FILE）。<span class="function"><strong>oci_result()</strong></span> 在出错时返回 <strong><code>FALSE</code></strong>。
  </p>
  <p class="para">
   可以使用列序号（从 1 开始）或列名（大写）作为
   <em><code class="parameter">col</code></em> 的参数。
  </p>
  <blockquote class="note"><p><strong class="note">Note</strong>: 
   <p class="para">
    在 PHP 5.0.0 之前的版本必须使用 <span class="function"><a href="function.ociresult.html" class="function">ociresult()</a></span>
    替代本函数。该函数名仍然可用，为向下兼容作为
    <span class="function"><strong>oci_result()</strong></span> 的别名。不过其已被废弃，不推荐使用。
   </p>
  </p></blockquote>
  <p class="para">要获取 OCI8
扩展进行数据类型映射的细节，请参见<a href="oci8.datatypes.html" class="link">驱动所支持的数据类型</a>。</p>
  <p class="para">
   参见 <span class="function"><a href="function.oci-fetch-array.html" class="function">oci_fetch_array()</a></span>，<span class="function"><a href="function.oci-fetch-assoc.html" class="function">oci_fetch_assoc()</a></span>，<span class="function"><a href="function.oci-fetch-object.html" class="function">oci_fetch_object()</a></span>，<span class="function"><a href="function.oci-fetch-row.html" class="function">oci_fetch_row()</a></span>
   和 <span class="function"><a href="function.oci-fetch-all.html" class="function">oci_fetch_all()</a></span>。
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.oci-result-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<em><code class="parameter">statement</code></em></dt>

     <dd>

      <p class="para">
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">field</code></em></dt>

     <dd>

      <p class="para">
       Can be either use the column number (1-based) or the column name (in
       uppercase).
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.oci-result-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns everything as strings except for abstract types (ROWIDs, LOBs and
   FILEs). Returns <strong><code>FALSE</code></strong> on error.
  </p>
 </div>


 <div class="refsect1 notes" id="refsect1-function.oci-result-notes">
  <h3 class="title">注释</h3>
  <blockquote class="note"><p><strong class="note">Note</strong>: 
   <p class="para">
    In PHP versions before 5.0.0 you must use <span class="function"><a href="function.ociresult.html" class="function">ociresult()</a></span> instead.
    This name still can be used, it was left as alias of
    <span class="function"><strong>oci_result()</strong></span> for downwards compatability.
    This, however, is deprecated and not recommended.
   </p>
  </p></blockquote>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.oci-result-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="function.oci-fetch-array.html" class="function" rel="rdfs-seeAlso">oci_fetch_array()</a> - Returns the next row from a query as an associative or numeric array</span></li>
    <li class="member"><span class="function"><a href="function.oci-fetch-assoc.html" class="function" rel="rdfs-seeAlso">oci_fetch_assoc()</a> - Returns the next row from a query as an associative array</span></li>
    <li class="member"><span class="function"><a href="function.oci-fetch-object.html" class="function" rel="rdfs-seeAlso">oci_fetch_object()</a> - Returns the next row from a query as an object</span></li>
    <li class="member"><span class="function"><a href="function.oci-fetch-row.html" class="function" rel="rdfs-seeAlso">oci_fetch_row()</a> - Returns the next row from a query as a numeric array</span></li>
    <li class="member"><span class="function"><a href="function.oci-fetch-all.html" class="function" rel="rdfs-seeAlso">oci_fetch_all()</a> - 获取结果数据的所有行到一个数组</span></li>
   </ul>
  </p>
 </div>

</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.oci-pconnect.html">oci_pconnect</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.oci-rollback.html">oci_rollback</a></div>
 <div class="up"><a href="ref.oci8.html">OCI8 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
